export default ({
  service,
  request,
  serviceForMock,
  requestForMock,
  mock,
  faker,
  tools
}) => ({
  generateSubmit(data = {}) {
    return request({
      url: "/generator/generate",
      timeout: 10000,
      method: "post",
      data
    });
  },
  tree(params = {}) {
    return request({
      url: "/generator/tree",
      method: "get",
      params
    });
  },
  content(params = {}) {
    return request({
      url: "/generator/content",
      method: "get",
      params
    });
  },
  // 根据项目id查询模板列表
  templateListByPro(data = {}) {
    return request({
      url: `/template/list/${data}`,
      method: "post",
      data
    });
  }
});
